/* eslint-disable @typescript-eslint/no-unused-vars */
import { Body, Controller, Logger, Get, Post, Req } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { MjService } from './mj.service';
@ApiTags('出牌接口')
@Controller()
export class MjController {
  logger: Logger;
  constructor(
    public readonly mjService: MjService,
  ) {
    this.logger = new Logger('MJService');
  }
  @Post('chupai')
  async chupaiAction(@Body() body: any) {
    console.log('real chupaiAction:');

    return this.mjService.chupaiAction(body)
    }
  @Post('chi')
  async chiAction(@Body() body: any) {
    console.log('real chiAction:');

    return this.mjService.chiAction(body)

  }

  @Post('peng')
  async pengAction(@Body() body: any) {
    console.log("real pengiAction:");
    return this.mjService.pengAction(body)
  }

  @Post('gang')
  async gangAction(@Body() body: any) {
    console.log("real gangAction:");

    return this.mjService.gangAction(body)
  }
  @Post('hu')
  async huAction(@Body() body: any) {
    console.log("real huAction:");

    return this.mjService.huAction(body)

  }
  @Post('guo')
  async guoAction(@Body() body: any) {
    console.log("real guoAction:");

    return this.mjService.guoAction(body)

  }
  @Post('autoChupai')
  async autoChupaiAction(@Body() body: any) {
    console.log("autoChupai:");

    return this.mjService.autoChupaiAction(body)
  }
  @Post('qishou')
  async qishouAction(@Body() body: any) {
    console.log("qishou:");

    return this.mjService.qishouAction(body)
  }
}
